<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
		<title>打印商品订单</title>
		<style type="text/css" media="print">
			.noprint{display:none}
		</style>
		<style type="text/css">
			td{
				font-size:9pt;
				font-family: Arial, Helvetica, sans-serif;
			}
			.table_style {
				border-collapse: collapse;
			}
			.hr_style {
				color: #000000;
			}
			.td01 {
				font-size: 14pt;
			}
			.font01 {
				font-size: medium;
			}
			.font02 {
				font-size: 11pt;
			}
			.font03 {
				font-size: 11pt;
				text-align: center;
			}
			.font04 {
				line-height: 150%;
			}
			#divTest{
				position: absolute;
				z-index: 1000;
				background-color: #D5ECF1;
				width: 100%;
				height:30px;
				left: 0%;
				bottom:0px;
				padding-top:10px;
				text-align:center;
			}
		</style>
	</head>

	<body style="margin: 0">
		<table align="center" cellpadding="0" cellspacing="0" class="table_style" style="width: 90%">
			<tr>
				<td height="70">
					<table cellpadding="0" cellspacing="0" class="table_style" style="width: 100%">
						<tr>
							<td class="td01"><strong>[%$app_read.ORDER_COMPANY%]商品订单</strong></td>
							<td align="right"><img title="[%$read.ordersn%]" src="[%$read.barcode%]"/></td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td><hr class="hr_style" noshade="noshade" /></td>
			</tr>
			<tr>
				<td>
					<table style="width: 100%" cellpadding="0" cellspacing="0" class="table_style">
						<tr>
							<td class="font02"><strong class="font02">订单号：[%$read.ordersn%]</strong></td>
							<td class="font02" align="right"><strong>客户下单日期：[%$read.addtime|espcms_timeformat(9)%]</strong></td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td><hr class="hr_style" noshade="noshade" /></td>
			</tr>
			<tr>
				<td align="center">
					<table style="width: 98%" cellpadding="5" cellspacing="0" class="table_style">
						<tr>
							<td class="font02"><strong>NO</strong></td>
							<td class="font02"><strong>货号</strong></td>
							<td class="font02"><strong>订购商品名称</strong></td>
							<td class="font02"><strong>数量</strong></td>
							<td class="font02" style="text-align: right"><strong>单价</strong></td>
							<td class="font02" style="text-align: right"><strong>小计</strong></td>
						</tr>
						[%forlist key=list from=$product_array%]
						<tr>
							<td>[%$product_array[list].did%]</td>
							<td>[%$product_array[list].tsn%]</td>
							<td>[%$product_array[list].title%]</td>
							<td>[%$product_array[list].amount%]</td>
							<td style="text-align: right">[%$product_array[list].bprice|espcms_format_money(2)%]</td>
							<td style="text-align: right">[%$product_array[list].countprice|espcms_format_money(2)%]</td>
						</tr>
						[%/forlist%]
					</table>
				</td>
			</tr>
			<tr>
				<td><hr class="hr_style" noshade="noshade" /></td>
			</tr>
			<tr>
				<td>
					<table cellpadding="3" cellspacing="0" class="table_style" style="width: 100%">
						<tr>
							<td valign="top">备注：[%$read.content%]</td>
							<td style="width: 200px" valign="top" class="font04">
								商品总价：[%$read.productmoney|espcms_format_money(2)%]<br/>
								运费：[%$read.shippingmoney|espcms_format_money(2)%]<br/>
								手续费：[%$read.paymoney|espcms_format_money(2)%]<br/>
								发票手续费：[%$read.invoicefeemoney|espcms_format_money(2)%]<br/>
								优惠：[%$read.discount|espcms_format_money(2)%]
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td><hr class="hr_style" noshade="noshade" /></td>
			</tr>
			<tr>
				<td>
					<table cellpadding="3" cellspacing="0" class="table_style" style="width: 100%">
						<tr>
							<td valign="top">&nbsp;</td>
							<td style="width: 200px" valign="top"><span class="font02"><strong>总计费用：[%$read.orderamount|espcms_format_money(2)%]</strong></span></td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td><hr class="hr_style" noshade="noshade" /></td>
			</tr>
			<tr>
				<td>
					<table cellpadding="3" cellspacing="0" class="table_style" style="width: 100%">
						<tr>
							<td class="font04">客户姓名：[%$read.consignee%]<br />
								客户地址：[%$read.province%]－[%$read.city%]－[%$read.district%]&nbsp; [%$read.address%]&nbsp;&nbsp;
								<br />
								[%if $read.tel!=''%]联系电话：[%$read.tel%]&nbsp;&nbsp;[%/if%][%if $read.mobile!=''%]手机：[%$read.mobile%][%/if%]</td>
							<td valign="top">&nbsp;</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td><hr class="hr_style" noshade="noshade" /></td>
			</tr>
			<tr>
				<td>
					<table cellpadding="3" cellspacing="0" class="table_style" style="width: 100%">
						<tr>
							<td class="font04">服务商地址：[%$app_read.ORDER_ADDRESS%]&nbsp;&nbsp;
								<a href="[%$sread.domain%]">[%$app_read.domain%]</a>&nbsp;&nbsp;
								电话：[%$app_read.ORDER_TEL%] &nbsp; E-mail:[%$app_read.ORDER_EMAIL%]</td>
							<td valign="top">&nbsp;</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		<div id="divTest" class="noprint">
			<OBJECT classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height="0" id="wb" name="wb" width="0" VIEWASTEXT></OBJECT>
			<input type="button" id="datasubmit" value="确认打印" name="submit" onclick="javascrīpt:window.print()"/>
		</div>
		<script type="text/javascript">
			<!--
			var rootel = document.documentElement; //XHTMl

			var bto = document.getElementById('divTest');
			function bt() {
				bto.style.top = (rootel.clientHeight - bto.offsetHeight) + rootel.scrollTop + 'px';
			}
			setInterval("bt()", 1);

		</script>
	</body>

</html>
